package com.fkcai.hansoul.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fkcai.hansoul.model.entity.PostImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PostImageMapper extends BaseMapper<PostImage> {
	@Select("SELECT file_url FROM post_image WHERE post_id = #{postId}")
	List<String> selectImageUrlsByPostId(@Param("postId") Integer postId);
}
